/**
 * Created with JetBrains WebStorm.
 * User: Eric
 * Date: 03/02/13
 * Time: 03:49
 * To change this template use File | Settings | File Templates.
 */

//https://github.com/caolan/forms
var translator = require("../Util/translator");
var forms = require('forms'),
    fields = forms.fields,
    widgets = forms.widgets,
    validators = forms.validators;

var weaponForm = forms.create({


    id : fields.string({
        widget: widgets.hidden()
    }),

   /* name : fields.string({
        choices: {
            fork: 'Fork',
            baseball: 'Baseball Bat',
            chainsaw: 'Chainsaw',
            Ak47: 'Ak-47'
        },label :'Arme',
        widget: widgets.select()
    }),
    */
    name : fields.string({required : true, label:"Nom"}),
    price : fields.string({required : true, label:"Prix"}),
    damage : fields.string({required : true, label:"Dégâts"}),
    cadence : fields.string({required : true, label:"Cadence"}),
    precision : fields.string({required: true, label:"Précision"}),
    requirement : fields.string({required: true, label:"Requirement"})
});


var plantationForm = forms.create({


    id : fields.string({
        widget: widgets.hidden()
    }),




    type : fields.string({required : true, label:"Type"}),
    maturationTime : fields.string({required : true, label:"Temps de maturation"}),
    growRate : fields.string({required : true, label:"Taux de croissance"}),
    decayTime : fields.string({required : true, label:"Temps de pourrissement"}),
    seedPrice : fields.string({required: true, label:"Prix des semences"})

});

var maturityForm = forms.create({


    id : fields.string({
        widget: widgets.hidden()
    }),




    name : fields.string({required : true, label:"Nom"}),
    min : fields.string({required : true, label:"Minimum"}),
    max : fields.string({required : true, label:"Maximum"})

});

exports.maturityForm = maturityForm;
exports.weaponForm = weaponForm;
exports.plantationForm = plantationForm;


